#include <iostream>
#include <fstream>
#include <string>

using namespace std;

class Person01 {
public:
	char m_Name[64];
	int m_Age;
};

void test0401() {
	ifstream ifs;
	ifs.open("person.txt", ios::binary | ios::in);
	if (!ifs.is_open()) {
		return;
	}

	Person01 p;
	ifs.read((char*)&p, sizeof(Person01));

	cout << p.m_Name << endl;
	cout << p.m_Age << endl;
}
int main() {
	test0401();
	return 0;
}